package com.woniuxy.cloud52.cinemaassembly.controller;


import com.woniuxy.cloud.ticket52.common.result.Result;
import com.woniuxy.cloud52.MovieHallAPI;
import com.woniuxy.cloud52.cinemaassembly.model.MovieHall;
import com.woniuxy.cloud52.cinemaassembly.service.IMovieHallService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 影厅信息 前端控制器
 * </p>
 *
 * @author rc
 * @since 2021-05-06
 */
@RestController
@Slf4j
public class MovieHallController implements MovieHallAPI {
    @Autowired
    private IMovieHallService iMovieHallService;



    @Override
    public Result getMovieHall(int cid) {
        log.info("查询影院{}的影厅信息",cid);
        MovieHall movieHall = iMovieHallService.findByCid(cid);
        return Result.success(movieHall);
    }

}

